<?php $this->load->view($config['site_template'].'/head');?>
<body class="gray-bg">

    <div class="wrapper wrapper-content animated fadeInUp">
        <div class="row">
            <div class="col-sm-12">

                <div class="ibox">
                    <!--
                    <div class="ibox-title">
                        <h5>所有列表</h5>

                        <div class="ibox-tools">
                            <a href="projects.html" class="btn btn-primary btn-xs">创建新项目</a>
                        </div>

                    </div>
                    -->
                    <div class="ibox-content">
                        <div class="row m-b-sm m-t-sm">
                            <div class="col-md-1">
                                <button type="button" id="loading-example-btn" class="btn btn-white btn-sm"><i class="fa fa-refresh"></i> 刷新</button>
                            </div>
                            <div class="col-md-11">
                                <div class="form-inline">
<!--                                    <input type="text" placeholder="请输入异常问题描述" class="input-sm form-control"> -->
                                    <select class="input-sm form-control" id="productLineSerach" data-style="btn-primary" data-width="40%" title="请选择生产线名称">
                                        <option data-hidden="true" value="" disable>---请选择生产线名称---</option>
                                        <?php foreach ($lineData as $value):?>
                                            <option value="<?=$value['lineId']?>" <?= ($value['lineId'] === $productLine) ? "selected" : ""?>><?=$value['lineName']?></option>
                                        <?php endforeach;?>
                                    </select>
                                    <select class="input-sm form-control" id="classesSearch" data-style="btn-primary" data-width="40%" title="请选择班次">
                                        <option data-hidden="true" value="" disable>---请选择班次---</option>
                                        <?php foreach ($classesData as $value):?>
                                            <option value="<?=$value['val']?>" <?= ($value['val'] === $classes) ? "selected" : ""?>><?=$value['valName']?></option>
                                        <?php endforeach;?>
                                    </select>
<!--                                    <span class="input-group-btn">-->
                                        <button type="button" id="serachBtn" class="btn btn-sm btn-primary"> 搜索</button>
<!--                                    </span>-->
                                </div>
                            </div>
                        </div>
                        <div class="project-list">
                            <table class="table table-hover">
                                <tbody>
                                    <tr>
                                        <td class="project-title">
                                            <a href="javascript:void(0)">序号</a>
                                        </td>
                                        <td class="project-title">
                                            <a href="javascript:void(0)">填写人</a>
                                        </td>
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">所在部门</a>-->
<!--                                        </td>-->
                                        <td class="project-title">
                                            <a href="javascript:void(0)">填写时间</a>
                                        </td>
                                        <td class="project-title">
                                            <a href="javascript:void(0)">生产线名称</a>
                                        </td>
                                        <td class="project-title">
                                            <a href="javascript:void(0)">班次</a>
                                        </td>

                                        <td class="project-title">
                                            <a href="javascript:void(0)">挂钩螺丝是否缺失、无松动</a>
                                        </td>
                                        <td class="project-title">
                                            <a href="javascript:void(0)">挂钩螺丝照片</a>
                                        </td>
                                        <td class="project-title">
                                            <a href="javascript:void(0)">运行是否平稳、无异响</a>
                                        </td>
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">运行是否有异响</a>-->
<!--                                        </td>-->
                                        <td class="project-title">
                                            <a href="javascript:void(0)">拦截网是否偏移</a>
                                        </td>
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">气动蝶阀是否漏料</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">气动蝶阀照片</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">星型阀是否漏料、电机异响</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">星型阀照片</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">星型阀电机是否异响</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">气密封保护气气压</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">气密封气压照片</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">主轴气密封气压</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">主轴气密封气压照片</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">设备编号照片</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">冷却水进水温度</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">冷却水进水温度照片</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">添加剂口螺丝是否丢失、松动</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">添加剂口螺丝照片</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">布袋软连接是否漏料</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">布袋软连接照片</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">主体运行是否平稳、无异响</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">气管是否漏气</a>-->
<!--                                        </td>-->
<!--                                        <td class="project-title">-->
<!--                                            <a href="javascript:void(0)">高混机电机运行是否平稳、无异响</a>-->
<!--                                        </td>-->
                                        <td class="project-title">
                                            <a href="javascript:void(0)">水膜除尘电机运行是否平稳、无异响</a>
                                        </td>
                                        <td class="project-title">
                                            <a href="javascript:void(0)">水膜除尘水清澈度是否浑浊</a>
                                        </td>
                                        <td class="project-title">
                                            <a href="javascript:void(0)">水清澈度照片</a>
                                        </td>
                                        <td class="project-title">
                                            <a href="javascript:void(0)">备注</a>
                                        </td>
                                        <td class="project-title" style="text-align: right;">
                                            <a href="javascript:void(0)">操作</a>
                                        </td>
                                    </tr>
                                    <?php foreach ($list as $value):?>
                                    <tr>
                                        <td class="project-status">
                                            <span class="label label-primary"><?=$value['lid']?>
                                        </td>
                                        <td class="project">
                                            <?=$value['userName']?>
                                        </td>
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['userDeptName']?>
<!--                                        </td>-->
                                        <td class="project">
                                            <?=date('Y-m-d H:i:s',$value['createTime'])?>
                                        </td>
                                        <td class="project">
                                            <?=$value['productLine']?>
                                        </td>
                                        <td class="project">
                                            <?=$value['classes'] == 0 ? "夜班" : "白班"?>
                                        </td>
                                        <td class="project">
                                            <?=$value['isHockScrewMiss'] == 0 ? "否" : "是"?>
                                        </td>
                                        <td class="social-avatar">
                                            <a href="javascript:void(0)">
                                                <?php if(strlen($value['hockScrewMissImgSrc'])  > 0):?>
                                                    <img alt="image" class="img" id="hockScrewMissImgSrc" src="<?=  base_url().$value['hockScrewMissImgSrc']?>">
                                                <?php endif;?>
                                            </a>
                                        </td>
                                        <td class="project">
                                            <?=$value['isRunStable'] == 0 ? "否" : "是"?>
                                        </td>
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['isAbnormalSound'] == 0 ? "否" : "是"?>
<!--                                        </td>-->
                                        <td class="project">
                                            <?=$value['isNetDeviation'] == 0 ? "否" : "是"?>
                                        </td>
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['isButterflyValveLeakage'] == 0 ? "否" : "是"?>
<!--                                        </td>-->
<!--                                        <td class="social-avatar">-->
<!--                                            <a href="javascript:void(0)">-->
<!--                                                --><?php //if(strlen($value['butterflyValveLeakageImgSrc'])  > 0):?>
<!--                                                    <img alt="image" class="img" id="butterflyValveLeakageImgSrc" src="--><?//=  base_url().$value['butterflyValveLeakageImgSrc']?><!--">-->
<!--                                                --><?php //endif;?>
<!--                                            </a>-->
<!--                                        </td>-->
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['isStarValveLeakage'] == 0 ? "否" : "是"?>
<!--                                        </td>-->
<!--                                        <td class="social-avatar">-->
<!--                                            <a href="javascript:void(0)">-->
<!--                                                --><?php //if(strlen($value['starValveLeakageImgSrc'])  > 0):?>
<!--                                                    <img alt="image" class="img" id="starValveLeakageImgSrc" src="--><?//=  base_url().$value['starValveLeakageImgSrc']?><!--">-->
<!--                                                --><?php //endif;?>
<!--                                            </a>-->
<!--                                        </td>-->
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['isStarValveEleMachineLeakage'] == 0 ? "否" : "是"?>
<!--                                        </td>-->
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['protectiveGasPressure']?><!-- Mpa-->
<!--                                        </td>-->
<!--                                        <td class="social-avatar">-->
<!--                                            <a href="javascript:void(0)">-->
<!--                                                --><?php //if(strlen($value['protectiveGasPressureImgSrc'])  > 0):?>
<!--                                                    <img alt="image" class="img" id="protectiveGasPressureImgSrc" src="--><?//=  base_url().$value['protectiveGasPressureImgSrc']?><!--">-->
<!--                                                --><?php //endif;?>
<!--                                            </a>-->
<!--                                        </td>-->
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['principalAxisPressure']?><!-- Pa-->
<!--                                        </td>-->
<!--                                        <td class="social-avatar">-->
<!--                                            <a href="javascript:void(0)">-->
<!--                                                --><?php //if(strlen($value['principalAxisPressureImgSrc'])  > 0):?>
<!--                                                    <img alt="image" class="img" id="principalAxisPressureImgSrc" src="--><?//=  base_url().$value['principalAxisPressureImgSrc']?><!--">-->
<!--                                                --><?php //endif;?>
<!--                                            </a>-->
<!--                                        </td>-->
<!--                                        <td class="social-avatar">-->
<!--                                            <a href="javascript:void(0)">-->
<!--                                                --><?php //if(strlen($value['equipmentNOImgSrc'])  > 0):?>
<!--                                                    <img alt="image" class="img" id="equipmentNOImgSrc" src="--><?//=  base_url().$value['equipmentNOImgSrc']?><!--">-->
<!--                                                --><?php //endif;?>
<!--                                            </a>-->
<!--                                        </td>-->
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['coolingWaterTemperature']?><!-- °C-->
<!--                                        </td>-->
<!--                                        <td class="social-avatar">-->
<!--                                            <a href="javascript:void(0)">-->
<!--                                                --><?php //if(strlen($value['coolingWaterTemperatureImgSrc'])  > 0):?>
<!--                                                    <img alt="image" class="img" id="coolingWaterTemperatureImgSrc" src="--><?//=  base_url().$value['coolingWaterTemperatureImgSrc']?><!--">-->
<!--                                                --><?php //endif;?>
<!--                                            </a>-->
<!--                                        </td>-->
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['isAdditiveScrewMiss'] == 0 ? "否" : "是"?>
<!--                                        </td>-->
<!--                                        <td class="social-avatar">-->
<!--                                            <a href="javascript:void(0)">-->
<!--                                                --><?php //if(strlen($value['additiveScrewMissImgSrc'])  > 0):?>
<!--                                                    <img alt="image" class="img" id="additiveScrewMissImgSrc" src="--><?//=  base_url().$value['additiveScrewMissImgSrc']?><!--">-->
<!--                                                --><?php //endif;?>
<!--                                            </a>-->
<!--                                        </td>-->
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['isSoftConnectionLeakage'] == 0 ? "否" : "是"?>
<!--                                        </td>-->
<!--                                        <td class="social-avatar">-->
<!--                                            <a href="javascript:void(0)">-->
<!--                                                --><?php //if(strlen($value['softConnectionLeakageImgSrc'])  > 0):?>
<!--                                                    <img alt="image" class="img" id="softConnectionLeakageImgSrc" src="--><?//=  base_url().$value['softConnectionLeakageImgSrc']?><!--">-->
<!--                                                --><?php //endif;?>
<!--                                            </a>-->
<!--                                        </td>-->
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['isSubjectRunStable'] == 0 ? "否" : "是"?>
<!--                                        </td>-->
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['isTracheaLeak'] == 0 ? "否" : "是"?>
<!--                                        </td>-->
<!--                                        <td class="project">-->
<!--                                            --><?//=$value['isEleMacineRunStable'] == 0 ? "否" : "是"?>
<!--                                        </td>-->
                                        <td class="project">
                                            <?=$value['isInkWashEleMacineRunStable'] == 0 ? "否" : "是"?>
                                        </td>
                                        <td class="project">
                                            <?=$value['isWaterMuddy'] == 0 ? "否" : "是"?>
                                        </td>
                                        <td class="social-avatar">
                                            <a href="javascript:void(0)">
                                                <?php if(strlen($value['waterMuddyImgSrc'])  > 0):?>
                                                    <img alt="image" class="img" id="waterMuddyImgSrc" src="<?=  base_url().$value['waterMuddyImgSrc']?>">
                                                <?php endif;?>
                                            </a>
                                        </td>
                                        <td class="project">
                                            <?=$value['remark']?>
                                        </td>
                                        <td class="project-actions">
                                            <a href="javascript:void(0)" class="btn btn-white btn-sm showOrder"><input type="hidden" name="id" value="<?=$value['id']?>"><i class="fa fa-folder"></i> 查看 </a>
                                            <!--<a href="projects.html#" class="btn btn-white btn-sm"><i class="fa fa-pencil"></i> 编辑 </a>-->
                                        </td>
                                    </tr>
                                    <?php endforeach;?>
                                    </tbody>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    <script>
       $(document).ready(function() {
            $("#loading-example-btn").click(function() {
                btn = $(this);
                simpleLoad(btn, true);
                simpleLoad(btn, false)
                var productLineSerach = $("#productLineSerach option:selected").val();
                var classesSearch = $("#classesSearch option:selected").val();
                window.location.href = "<?=base_url('XunJian_YiPei/dataAllList_SBYJDJB2F?productLine=')?>" + productLineSerach + "&classes=" + classesSearch;
            })
            $('.img').click(function(){
                var src = $(this).attr("src")
                var id = $(this).attr("id");
                var showText;
                if(id == "hockScrewMissImgSrc"){
                    showText = "挂钩螺丝照片";
                }else if(id == "butterflyValveLeakageImgSrc"){
                    showText = "气动蝶阀照片";
                }else if(id == "starValveLeakageImgSrc"){
                    showText = "星型阀照片";
                }else if(id == "protectiveGasPressureImgSrc"){
                    showText = "气密封气压照片";
                }else if(id == "principalAxisPressureImgSrc"){
                    showText = "主轴气密封气压照片";
                }else if(id == "coolingWaterTemperatureImgSrc"){
                    showText = "冷却水进水温度照片";
                }else if(id == "additiveScrewMissImgSrc"){
                    showText = "添加剂口螺丝照片";
                }else if(id == "softConnectionLeakageImgSrc"){
                    showText = "布袋软连接照片";
                }else if(id == "waterMuddyImgSrc"){
                    showText = "水清澈度照片";
                }else if(id == "equipmentNOImgSrc"){
                    showText = "设备编号照片";
                }
                $(".showText").text(showText);
                $("#thumb").attr('src',src);
                $(".showThumb").click();
            });
            $("#serachBtn").click(function () {
                var productLineSerach = $("#productLineSerach option:selected").val();
                var classesSearch = $("#classesSearch option:selected").val();
                window.location.href = "<?=base_url('XunJian_YiPei/dataAllList_SBYJDJB2F?productLine=')?>" + productLineSerach + "&classes=" + classesSearch;
            });
            $(".showOrder").click(function(){
                var id = $(this).find("[name=id]").val();
                $.ajax({
                    type:"GET",
                    url:'<?=base_url("XunJian_YiPei/getSingleContent_SBYJDJB2F?id=")?>'+id,
                    dataType: "json",
                    success:function(data){
                        if(data.userName.length > 0){
                            $("#userName").html(data.userName);
                        }else{
                            $("#userName").html("无数据");
                        }
                        // if(data.userDeptName.length > 0){
                        //     $("#userDeptName").html(data.userDeptName);
                        // }else{
                        //     $("#userDeptName").html("无数据");
                        // }
                        if(data.createTime.length > 0){
                            $("#createTime").html(data.createTime);
                        }else{
                            $("#createTime").html("无数据");
                        }
                        if(data.productLine.length > 0){
                            $("#productLine").html(data.productLine);
                        }else{
                            $("#productLine").html("无数据");
                        }
                        if(data.classes.length > 0){
                            var classes;
                            if(data.classes == 0){
                                classes = "夜班";
                            }else if(data.classes == 1){
                                classes = "白班";
                            }
                            $("#classes").html(classes);
                        }else{
                            $("#classes").html("无数据");
                        }
                        //if(data.equipmentNOImgSrc.length > 0){
                        //    $("#equipmentNOImgSrcShow").html('<img src="<?//=  base_url()?>//'+data.equipmentNOImgSrc+'" class="img-responsive" alt="Cinque Terre">');
                        //}else{
                        //    $("#equipmentNOImgSrcShow").html("无数据");
                        //}
                        if(data.isHockScrewMiss.length > 0){
                            var isHockScrewMiss;
                            if(data.isHockScrewMiss == 0){
                                isHockScrewMiss = "否";
                            }else if(data.isHockScrewMiss == 1){
                                isHockScrewMiss = "是";
                            }
                            $("#isHockScrewMiss").html(isHockScrewMiss);
                        }else{
                            $("#isHockScrewMiss").html("无数据");
                        }
                        if(data.hockScrewMissImgSrc.length > 0){
                            $("#hockScrewMissImgSrcShow").html('<img src="<?=  base_url()?>'+data.hockScrewMissImgSrc+'" class="img-responsive" alt="Cinque Terre">');
                        }else{
                            $("#hockScrewMissImgSrcShow").html("无数据");
                        }
                        if(data.isRunStable.length > 0){
                            var isRunStable;
                            if(data.isRunStable == 0){
                                isRunStable = "否";
                            }else if(data.isRunStable == 1){
                                isRunStable = "是";
                            }
                            $("#isRunStable").html(isRunStable);
                        }else{
                            $("#isRunStable").html("无数据");
                        }
                        // if(data.isAbnormalSound.length > 0){
                        //     var isAbnormalSound;
                        //     if(data.isAbnormalSound == 0){
                        //         isAbnormalSound = "否";
                        //     }else if(data.isAbnormalSound == 1){
                        //         isAbnormalSound = "是";
                        //     }
                        //     $("#isAbnormalSound").html(isAbnormalSound);
                        // }else{
                        //     $("#isAbnormalSound").html("无数据");
                        // }
                        if(data.isNetDeviation.length > 0){
                            var isNetDeviation;
                            if(data.isNetDeviation == 0){
                                isNetDeviation = "否";
                            }else if(data.isNetDeviation == 1){
                                isNetDeviation = "是";
                            }
                            $("#isNetDeviation").html(isNetDeviation);
                        }else{
                            $("#isNetDeviation").html("无数据");
                        }
                        // if(data.isButterflyValveLeakage.length > 0){
                        //     var isButterflyValveLeakage;
                        //     if(data.isButterflyValveLeakage == 0){
                        //         isButterflyValveLeakage = "否";
                        //     }else if(data.isButterflyValveLeakage == 1){
                        //         isButterflyValveLeakage = "是";
                        //     }
                        //     $("#isButterflyValveLeakage").html(isButterflyValveLeakage);
                        // }else{
                        //     $("#isButterflyValveLeakage").html("无数据");
                        // }
                        //if(data.butterflyValveLeakageImgSrc.length > 0){
                        //    $("#butterflyValveLeakageImgSrcShow").html('<img src="<?//=  base_url()?>//'+data.butterflyValveLeakageImgSrc+'" class="img-responsive" alt="Cinque Terre">');
                        //}else{
                        //    $("#butterflyValveLeakageImgSrcShow").html("无数据");
                        //}
                        // if(data.isStarValveLeakage.length > 0){
                        //     var isStarValveLeakage;
                        //     if(data.isStarValveLeakage == 0){
                        //         isStarValveLeakage = "否";
                        //     }else if(data.isStarValveLeakage == 1){
                        //         isStarValveLeakage = "是";
                        //     }
                        //     $("#isStarValveLeakage").html(isStarValveLeakage);
                        // }else{
                        //     $("#isStarValveLeakage").html("无数据");
                        // }
                        //if(data.starValveLeakageImgSrc.length > 0){
                        //    $("#starValveLeakageImgSrcShow").html('<img src="<?//=  base_url()?>//'+data.starValveLeakageImgSrc+'" class="img-responsive" alt="Cinque Terre">');
                        //}else{
                        //    $("#starValveLeakageImgSrcShow").html("无数据");
                        //}
                        // if(data.isStarValveEleMachineLeakage.length > 0){
                        //     var isStarValveEleMachineLeakage;
                        //     if(data.isStarValveEleMachineLeakage == 0){
                        //         isStarValveEleMachineLeakage = "否";
                        //     }else if(data.isStarValveEleMachineLeakage == 1){
                        //         isStarValveEleMachineLeakage = "是";
                        //     }
                        //     $("#isStarValveEleMachineLeakage").html(isStarValveEleMachineLeakage);
                        // }else{
                        //     $("#isStarValveEleMachineLeakage").html("无数据");
                        // }

                        // if(data.protectiveGasPressure.length > 0){
                        //     $("#protectiveGasPressure").html(data.protectiveGasPressure + " MPa");
                        // }else{
                        //     $("#protectiveGasPressure").html("无数据");
                        // }
                        //if(data.protectiveGasPressureImgSrc.length > 0){
                        //    $("#protectiveGasPressureImgSrcShow").html('<img src="<?//=  base_url()?>//'+data.protectiveGasPressureImgSrc+'" class="img-responsive" alt="Cinque Terre">');
                        //}else{
                        //    $("#protectiveGasPressureImgSrcShow").html("无数据");
                        //}
                        // if(data.principalAxisPressure.length > 0){
                        //     $("#principalAxisPressure").html(data.principalAxisPressure + " Pa");
                        // }else{
                        //     $("#principalAxisPressure").html("无数据");
                        // }
                        //if(data.principalAxisPressureImgSrc.length > 0){
                        //    $("#principalAxisPressureImgSrcShow").html('<img src="<?//=  base_url()?>//'+data.principalAxisPressureImgSrc+'" class="img-responsive" alt="Cinque Terre">');
                        //}else{
                        //    $("#principalAxisPressureImgSrcShow").html("无数据");
                        //}
                        // if(data.coolingWaterTemperature.length > 0){
                        //     $("#coolingWaterTemperature").html(data.coolingWaterTemperature + " °C");
                        // }else{
                        //     $("#coolingWaterTemperature").html("无数据");
                        // }
                        //if(data.coolingWaterTemperatureImgSrc.length > 0){
                        //    $("#coolingWaterTemperatureImgSrcShow").html('<img src="<?//=  base_url()?>//'+data.coolingWaterTemperatureImgSrc+'" class="img-responsive" alt="Cinque Terre">');
                        //}else{
                        //    $("#coolingWaterTemperatureImgSrcShow").html("无数据");
                        //}
                        //if(data.isAdditiveScrewMiss.length > 0){
                        //    var isAdditiveScrewMiss;
                        //    if(data.isAdditiveScrewMiss == 0){
                        //        isAdditiveScrewMiss = "否";
                        //    }else if(data.isAdditiveScrewMiss == 1){
                        //        isAdditiveScrewMiss = "是";
                        //    }
                        //    $("#isAdditiveScrewMiss").html(isAdditiveScrewMiss);
                        //}else{
                        //    $("#isAdditiveScrewMiss").html("无数据");
                        //}
                        //if(data.additiveScrewMissImgSrc.length > 0){
                        //    $("#additiveScrewMissImgSrcShow").html('<img src="<?//=  base_url()?>//'+data.additiveScrewMissImgSrc+'" class="img-responsive" alt="Cinque Terre">');
                        //}else{
                        //    $("#additiveScrewMissImgSrcShow").html("无数据");
                        //}
                        //if(data.isSoftConnectionLeakage.length > 0){
                        //    var isSoftConnectionLeakage;
                        //    if(data.isSoftConnectionLeakage == 0){
                        //        isSoftConnectionLeakage = "否";
                        //    }else if(data.isSoftConnectionLeakage == 1){
                        //        isSoftConnectionLeakage = "是";
                        //    }
                        //    $("#isSoftConnectionLeakage").html(isSoftConnectionLeakage);
                        //}else{
                        //    $("#isSoftConnectionLeakage").html("无数据");
                        //}
                        //if(data.softConnectionLeakageImgSrc.length > 0){
                        //    $("#softConnectionLeakageImgSrcShow").html('<img src="<?//=  base_url()?>//'+data.softConnectionLeakageImgSrc+'" class="img-responsive" alt="Cinque Terre">');
                        //}else{
                        //    $("#softConnectionLeakageImgSrcShow").html("无数据");
                        //}
                        // if(data.isSubjectRunStable.length > 0){
                        //     var isSubjectRunStable;
                        //     if(data.isSubjectRunStable == 0){
                        //         isSubjectRunStable = "否";
                        //     }else if(data.isSubjectRunStable == 1){
                        //         isSubjectRunStable = "是";
                        //     }
                        //     $("#isSubjectRunStable").html(isSubjectRunStable);
                        // }else{
                        //     $("#isSubjectRunStable").html("无数据");
                        // }
                        // if(data.isTracheaLeak.length > 0){
                        //     var isTracheaLeak;
                        //     if(data.isTracheaLeak == 0){
                        //         isTracheaLeak = "否";
                        //     }else if(data.isTracheaLeak == 1){
                        //         isTracheaLeak = "是";
                        //     }
                        //     $("#isTracheaLeak").html(isTracheaLeak);
                        // }else{
                        //     $("#isTracheaLeak").html("无数据");
                        // }
                        // if(data.isEleMacineRunStable.length > 0){
                        //     var isEleMacineRunStable;
                        //     if(data.isEleMacineRunStable == 0){
                        //         isEleMacineRunStable = "否";
                        //     }else if(data.isEleMacineRunStable == 1){
                        //         isEleMacineRunStable = "是";
                        //     }
                        //     $("#isEleMacineRunStable").html(isEleMacineRunStable);
                        // }else{
                        //     $("#isEleMacineRunStable").html("无数据");
                        // }
                        if(data.isInkWashEleMacineRunStable.length > 0){
                            var isInkWashEleMacineRunStable;
                            if(data.isInkWashEleMacineRunStable == 0){
                                isInkWashEleMacineRunStable = "否";
                            }else if(data.isInkWashEleMacineRunStable == 1){
                                isInkWashEleMacineRunStable = "是";
                            }
                            $("#isInkWashEleMacineRunStable").html(isInkWashEleMacineRunStable);
                        }else{
                            $("#isInkWashEleMacineRunStable").html("无数据");
                        }
                        if(data.isWaterMuddy.length > 0){
                            var isWaterMuddy;
                            if(data.isWaterMuddy == 0){
                                isWaterMuddy = "否";
                            }else if(data.isWaterMuddy == 1){
                                isWaterMuddy = "是";
                            }
                            $("#isWaterMuddy").html(isWaterMuddy);
                        }else{
                            $("#isWaterMuddy").html("无数据");
                        }
                        if(data.waterMuddyImgSrc.length > 0){
                            $("#waterMuddyImgSrcShow").html('<img src="<?=  base_url()?>'+data.waterMuddyImgSrc+'" class="img-responsive" alt="Cinque Terre">');
                        }else{
                            $("#waterMuddyImgSrcShow").html("无数据");
                        }
                        if(data.remark.length > 0){
                            $("#remark").html(data.remark);
                        }else{
                            $("#remark").html("无数据");
                        }

                        $(".showAbnormalQas").click();
                    }
                    
                })
            })
        });

        function simpleLoad(btn, state) {
            if (state) {
                btn.children().addClass("fa-spin");
                btn.contents().last().replaceWith(" Loading")
            } else {
                setTimeout(function() {
                    btn.children().removeClass("fa-spin");
                    btn.contents().last().replaceWith(" Refresh")
                },
                2000)
            }
        };
    
        $(function () { $('#imgShow').modal('hide')});
        $(function () { $('#imgShow').on('hide.bs.modal', function () {
           //alert('嘿，我听说您喜欢模态框...');
           })
        });
    </script>
    
    </body>
    <!--异常问题截图展示-->
    <!-- 按钮触发模态框 -->
    <button class="btn btn-primary btn-lg showThumb" style="display: none" data-toggle="modal" data-target="#imgShow">
            演示图片模态框
    </button>
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="imgShow" tabindex="-1" role="dialog" aria-labelledby="imgShowLabel" aria-hidden="true">
            <div class="modal-dialog">
                    <div class="modal-content">
                            <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                                    </button>
                                    <h4 class="modal-title" id="imgShowLabel">
                                        <div class="showText">异常问题截图</div>
                                    </h4>
                            </div>
                            <div class="modal-body">
                                    <img id="thumb" src="" class="img-responsive" alt="Cinque Terre"> 
                            </div>
                            <div class="modal-footer">
                                    <button type="button" class="btn btn-primary" data-dismiss="modal">
                                            关闭
                                    </button>
                            </div>
                    </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
    
    <!--异常问题详细内容展示-->
    <!-- 按钮触发模态框 -->
    <button class="btn btn-primary btn-lg showAbnormalQas" style="display: none" data-toggle="modal" data-target="#AbnormalQasShow">
            异常问题详细模态框
    </button>
    <!-- 模态框（Modal） -->
    <div class="modal fade" id="AbnormalQasShow" tabindex="-1" role="dialog" aria-labelledby="AbnormalQasShowLabel" aria-hidden="true">
            <div class="modal-dialog">
                    <div class="modal-content">
                            <div class="modal-header">
                                    <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×
                                    </button>
                                    <h4 class="modal-title" id="AbnormalQasShowLabel">
                                        设备一级点检表
                                    </h4>
                            </div>
                            <div class="modal-body">
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">填写人</label>
                                    <div id="userName" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">所在部门</label>-->
<!--                                    <div id="userDeptName" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">填写时间</label>
                                    <div id="createTime" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">生产线名称</label>
                                    <div id="productLine" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">班次</label>
                                    <div id="classes" class="col-sm-6 well well-sm">
                                    </div>
                                </div>

                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">挂钩螺丝是否缺失、无松动</label>
                                    <div id="isHockScrewMiss" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">挂钩螺丝照片</label>
                                    <div id="hockScrewMissImgSrcShow" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">运行是否平稳、有异响</label>
                                    <div id="isRunStable" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">运行是否有异响</label>-->
<!--                                    <div id="isAbnormalSound" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">拦截网是否偏移</label>
                                    <div id="isNetDeviation" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">气动蝶阀是否漏料</label>-->
<!--                                    <div id="butterflyValveLeakageImgSrcShow" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">气动蝶阀照片</label>-->
<!--                                    <div id="isButterflyValveLeakage" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">星型阀是否漏料、电机是否异响</label>-->
<!--                                    <div id="isStarValveLeakage" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">星型阀照片</label>-->
<!--                                    <div id="starValveLeakageImgSrcShow" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">星型阀电机是否异响</label>-->
<!--                                    <div id="isStarValveEleMachineLeakage" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">气密封保护气气压(Mpa)</label>-->
<!--                                    <div id="protectiveGasPressure" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">气密封气压照片</label>-->
<!--                                    <div id="protectiveGasPressureImgSrcShow" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">主轴气密封气压(Pa)</label>-->
<!--                                    <div id="principalAxisPressure" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">主轴气密封气压照片</label>-->
<!--                                    <div id="principalAxisPressureImgSrcShow" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">设备编号照片</label>-->
<!--                                    <div id="equipmentNOImgSrcShow" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">冷却水进水温度(℃)</label>-->
<!--                                    <div id="coolingWaterTemperature" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">冷却水进水温度照片</label>-->
<!--                                    <div id="coolingWaterTemperatureImgSrcShow" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">添加剂口螺丝是否丢失、松动</label>-->
<!--                                    <div id="isAdditiveScrewMiss" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">添加剂口螺丝照片</label>-->
<!--                                    <div id="additiveScrewMissImgSrcShow" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">布袋软连接是否漏料</label>-->
<!--                                    <div id="isSoftConnectionLeakage" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">布袋软连接照片</label>-->
<!--                                    <div id="softConnectionLeakageImgSrcShow" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">主体运行是否平稳、无异响</label>-->
<!--                                    <div id="isSubjectRunStable" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">气管是否漏气</label>-->
<!--                                    <div id="isTracheaLeak" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
<!--                                <div class="form-group">-->
<!--                                    <label class="col-sm-6 control-label well well-sm">高混机电机运行是否平稳、无异响</label>-->
<!--                                    <div id="isEleMacineRunStable" class="col-sm-6 well well-sm">-->
<!--                                    </div>-->
<!--                                </div>-->
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">水膜除尘电机运行是否平稳、无异响</label>
                                    <div id="isInkWashEleMacineRunStable" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">水膜除尘水清澈度是否浑浊</label>
                                    <div id="isWaterMuddy" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">水清澈度照片</label>
                                    <div id="waterMuddyImgSrcShow" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-6 control-label well well-sm">备注</label>
                                    <div id="remark" class="col-sm-6 well well-sm">
                                    </div>
                                </div>
                            </div>
                            <div class="modal-footer">
                                    <button type="button" class="btn btn-primary" data-dismiss="modal">
                                            关闭
                                    </button>
                            </div>
                    </div><!-- /.modal-content -->
            </div><!-- /.modal-dialog -->
    </div><!-- /.modal -->
<?php $this->load->view($config['site_template'].'/foot');?>